package com.carlinfo.stu_ques.demo.pojo;

import java.io.Serializable;
import java.util.Date;

import com.carlinfo.stu_ques.common.util.DateUtil;

public class Dynasty implements Serializable
{
	private int id;
	private String name;
	private String capital;
	private short age;
	private Date st;
	private Date createTime;
	private Date updateTime;
	public Date getUpdateTime()
	{
		return updateTime;
	}
	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public String getCapital()
	{
		return capital ;
	}
	public void setCapital(String Capital)
	{
		this.capital = capital;
	}
	public short getAge()
	{
		return age ;
	}
	public void setAge(short age)
	{
		this.age = age;
	}
	public Date getSt()
	{
		return st ;
	}
	public void setSt(Date st)
	{
		this.st = st;
	}
	public Date getCreateTime()
	{
		return createTime ;
	}
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}
	DateUtil dateUtil = new DateUtil();
	public String toString()
	{
		String result = getId() + "\t"+ getName() +
				"\t"+ getCapital() +"\t"+ getAge() +"\t"+ 
				dateUtil.dateToStr(this.getSt()) +
				"\t"+ dateUtil.dateTimeToStr(this.getCreateTime()) +"\t" + dateUtil.dateTimeToStr(this.getUpdateTime()) ; 
		return result;
	}
}
